package hk.hku.hooku.pojo;

import java.sql.Timestamp;

public class EventChoice {
	private int id;
	private Timestamp startTime;
	private Timestamp endTime;
	
	public EventChoice() {
		super();
	}

	public EventChoice(int id,Timestamp startTime, Timestamp endTime) {
		super();
		this.id=id;
		this.startTime = startTime;
		this.endTime = endTime;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Timestamp getStartTime() {
		return startTime;
	}

	public Timestamp getEndTime() {
		return endTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	
	@Override
	public boolean equals(Object o){
		if(o instanceof EventChoice){
			EventChoice choice=(EventChoice)o;
			return this.getStartTime().equals(choice.getStartTime())&&
					this.getEndTime().equals(choice.getEndTime());
		}
		return false;
	}
}
